namespace T007Commission
{
    //define a commission method
    public delegate void GreetingDelegate(string name);
    public class GreetingManager
    {
        //state a Variable in Class
        public event GreetingDelegate delegate1;
        //interface method
        public void GreetPeople(string name)
        {
            if (delegate1 != null)//if a function has bound a commission variable
                delegate1(name);//use this function by commission
        }
    }
}